<#assign jcc=statics['com.bingo.generate.cli.Cmds.JavaToPhpVoCodeCmd']>

这是一个freemaker的模板:用来生成JAVA的插入代码的

/**
 * ClassName
 * Description
 * Create by lc
 * Date 2021/8/27 15:39
 */
@Data
@Accessors(chain = true)
@TableName("${tbName}")
public class ${modelName} {

    //  对应表的字段展示
    <#assign colStr=jcc.getSqlColStr(cols) >
    private static String colStr="${colStr}";

<#list  cols  as  col>
    <#-- 定义局部变量演算 -->
    <#assign type=jcc.getType(col) >
    <#assign annotations=jcc.getAnnotations(col) >
    <#assign fieldName=col.colName>
    ${annotations}private ${type} ${fieldName};
</#list>

    public void init(BaseVideo entity){
<#list  cols  as  col>
    <#assign getSetStr=jcc.getSet(col) >
        //  ${col.comment}
        ${getSetStr};
</#list>

    }

}






